//
//  ExchangeIntegralLayout.h
//  CedarFinancePH
//
//  Created by menchao on 2018/12/17.
//  Copyright © 2018年 cedarhd. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ExchangeIntegralLayout;


NS_ASSUME_NONNULL_BEGIN

@protocol  IntegralFallLayoutDeleaget<NSObject>

@optional
/**
 * 每个item的高度
 */
- (CGFloat)layout:(ExchangeIntegralLayout *)layout
  heightForItemAtIndexPath:(NSUInteger)indexPath
                 itemWidth:(CGFloat)itemWidth;

/**
 * 列数
 */
- (NSUInteger)columnCountInLayout:(ExchangeIntegralLayout *)layout;

/**
 * 每列之间的间距
 */
- (CGFloat)columnMarginInLayout:(ExchangeIntegralLayout *)layout;

/**
 * 每行之间的间距
 */
- (CGFloat)rowMarginInLayout:(ExchangeIntegralLayout *)layout;

/**
 * 每个item的内边距
 */
- (UIEdgeInsets)edgeInsetdInLayout:(ExchangeIntegralLayout *)layout;


@end



@interface ExchangeIntegralLayout : UICollectionViewLayout

@property (nonatomic, weak) id<IntegralFallLayoutDeleaget> delegate;

@end

NS_ASSUME_NONNULL_END
